package com.springboot.test.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.SuperBuilder;

import java.math.BigDecimal;
import java.util.Date;

@TableName("goods")
@Data
public class GoodsEntity extends BaseEntity{
    private String goodsCode;

    private String goodsName;

    private String goodsParentTypeCode;

    private String goodsParentType;

    private String goodsTypeCode;

    private String goodsType;

    private String publishUserCode;

    private String indexImg;

    private Date publishTime;

    /**
     * 是否发布 0已发布 1未发布 2已下架
     */
    @TableField("is_publish")
    private Integer publish;

    /**
     * 0已交易 1未交易
     */
    @TableField("is_trade")
    private Integer trade;

    /**
     * 是否审核 0未审核 1审核通过 2未通过
     */
    @TableField("is_audit")
    private Integer audit;

    /**
     * 预售价
     */
    private BigDecimal price;

    private Integer status;


}
